//
//  AbstractFactory.swift
//  AbstactFactoryDemo
//
//  Created by 好米有易 on 2017/9/28.
//  Copyright © 2017年 好米有易. All rights reserved.
//

import UIKit

public enum ShapeType {
    case circle
    case square
    case rectangle
}

public enum ColorType {
    case red
    case green
    case blue
}



/// 抽象工厂
public class AbstractFactory: NSObject {
    
  public override init() {
        super.init()
       // print("没有实例工厂")
    }
    
    public func getShape(type: ShapeType) -> Shape {
        
        return Shape()
    }
    
    public func getColor(type: ColorType) -> Color {
        return Color()
    }
    
}
